package sctu.edu.java.year2016.team04.baiyunfei.Exercise;

/**
 * Created by DE on 2016/5/29.
 */
public class Book {
    private int id;
    private String name;
    private String category;

    public Book(){
        System.out.println("构造");
    }

    public String getName(){
        int id = 2;
        setName("java");
        return id+" "+this.name;

    }
    public void setName(String name){

        this.name=name;
    }
    public Book getBook(){
      id++;
        name="book";
        return this;
    }


}
